﻿namespace StockSharp.AlfaDirect.Xaml
{
	using StockSharp.BusinessEntities;
	using StockSharp.Xaml;

	/// <summary>
	/// Визуальная панель для редактирования настроек <see cref="AlfaTrader"/>.
	/// </summary>
	public partial class AlfaSettings : ITraderSettingsPanel
	{
		/// <summary>
		/// Создать <see cref="AlfaSettings"/>.
		/// </summary>
		public AlfaSettings()
		{
			InitializeComponent();
		}

		//private string Login
		//{
		//    get { return LoginCtrl.Text; }
		//    set { LoginCtrl.Text = value; }
		//}

		//private string Password
		//{
		//    get { return PasswordCtrl.Password; }
		//    set { PasswordCtrl.Password = value; }
		//}

		bool ITraderSettingsPanel.IsValid
		{
			get { return true; }
		}

		void ITraderSettingsPanel.Save(ITrader trader)
		{
			// TODO: set loging/password
		}

		void ITraderSettingsPanel.Load(ITrader trader)
		{
			//Login = trader.Login;
			//Password = trader.Password;
		}
	}
}
